package com.zjitc.obj;

/**
 * Create by IntelliJ IDEA
 *
 * @author: jsonor
 * @date-Time: 2018/3/5 16:38
 * @description:
 */
public class UserFactory {

  private static User user = new User();

  //可以修改成传入参数在xml中设置
  public User createUser(){
    return user;
  }

  public User customUser(String name,int age){
    return new User(name,age);
  }
}
